PaymentPlugins\WooCommerce\PPCP\ContextHandler S

Total Complexity 35
Dependencies 3
Dependents 18
Total lines 133
Lines of code 85
Logical lines of code 42
Comment lines 6
Methods 17
Properties 1

Methods 17

Method Rating Maintainability Complexity Lines of code
initialize()
A
51 13 25
is_checkout_block()
S
68 4 7
has_context()
S
70 2 6
__construct()
S
70 2 6
is_frontend()
S
78 2 3
is_context()
S
76 1 4
is_checkout()
S
80 1 3
is_add_payment_method()
S
80 1 3
set_context()
S
81 1 3
is_product()
S
80 1 3
is_order_pay()
S
80 1 3
is_order_received()
S
80 1 3
is_shop()
S
80 1 3
get_context()
S
82 1 3
get_order_from_query()
S
75 1 4
get_product_id()
S
81 1 3
is_cart()
S
80 1 3